<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script>
function getNumber()
{
	window.open("/AddItem/child.htm");
}
function sendValue(id)
{
	document.getElementById('value').value=id;
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form:form action="saveItem.htm" method="post" commandName="item">
<table>
<tr>
<td>Part#</td><td></td><td></td><td></td><td></td>
<td>Revision</td>
<td>Part Type</td>
<td>Part UOM</td>
<td>Descrption</td>

</tr>
<tr>
 <td><form:input path="partNumber" id="value"/></td>
 <td><input type="button" name="Go" value="Go" onclick="return getNumber()"/></td><td></td><td></td></td><td></td>
<td><form:input path="revision"/></td> 
<td><form:select path="partType" items="${item_types}"/></td>

</td>
 <td><form:select path="partUnit" items="${item_uoms}"/></td>
 <td><form:input path="description"/></td>


</tr>
<tr>
<td>
<input type="hidden" name="action" value="saveItem"/>
<input type="submit" name="save" value="SaveItem"/></td></tr>
</table>

</form:form>
</body>
</html>